#:import NumInput ui.num_input.NumInput

<GameConfig>:
    orientation: 'vertical'
    size: root.size
    BoxLayout:
        orientation: 'horizontal'
        size_hint_y: None
        height: root.height*0.1
        Button:
            color: 1,0,0,1
            text: _('Back')
            on_release: root.go_back()
        Button:
            color: 0,1,0,1
            text: _('Next')
            on_release: root.next_view()
    BoxLayout:
        size_hint_y: 0.1
        orientation: 'horizontal'
        Label:
            text: _('Time per round')
            size_hint_x: 3
        Button:
            text: '-5'
            on_release: root.change_time(-5)
        NumInput:
            text: str(root.time_amount_text)
            on_text: root.read_time(args[1])
            multiline: False
            font_size: 0.6*self.height
            adapter: root.presenter.adapter
        Button:
            text: '+5'
            on_release: root.change_time(5)
    BoxLayout:
        size_hint_y: 0.1
        orientation: 'horizontal'
        Label:
            size_hint_x: 3
            text: _('Words per player')
        Button:
            text: '-'
            on_release: root.change_words_count(-1)
        NumInput:
            text: str(root.words_count_text)
            on_text: root.read_words_count(args[1])
            multiline: False
            font_size: 0.6*self.height
            adapter: root.presenter.adapter
        Button:
            text: '+'
            on_release: root.change_words_count(1)
    Label:
